package com.zzh.jn_erp.user.service.impl;

import com.zzh.jn_erp.user.dao.UserDao;
import com.zzh.jn_erp.user.entity.User;
import com.zzh.jn_erp.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 校验登录人
     * @param user 参数
     * @return boolean
     */
    @Override
    public boolean validateUser(User user) {
        return userDao.validateUser(user) > 0;
    }
}
